<script setup lang="ts">
import { useRoute } from 'vue-router';
import AdminLayout from "./layouts/AdminLayout.vue";
import EmptyLayout from "./layouts/EmptyLayout.vue";

const route = useRoute();
</script>

<template>
  <!-- 根据路由元信息选择布局 -->
  <component :is="route.meta.layout === 'empty' ? EmptyLayout : AdminLayout">
  </component>
</template>

<style scoped>
</style>